package com.codeoss.framework.view.component;

public class Message {
	public static final String MESSAGE_TYPE_INFO="info";
	public static final String MESSAGE_TYPE_WARN="warn";
	public static final String MESSAGE_TYPE_ERROR="error";
	private String messageType;
	private String message;
	
	public Message(String message,String messageType) {
		this.messageType = messageType;
		this.message = message;
	}
	
	public Message(String message) {
		this(message,MESSAGE_TYPE_INFO);
	}
	
	public String getMessageType() {
		return messageType;
	}
	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
